package com.android.dumiaogou.model.detail;

import java.util.List;

/**
 * Created by Administrator on 2016/9/9.
 */
public class Banner {

    @Override
    public String toString() {
        return "{" + "\"data\"" + ":"  + data +
                "," + "\"flag\"" + ":" + flag +
                "," + "\"code\"" + ":" + code +
                "," + "\"msg\"" + ":" + "\"" + msg + "\"" +
                "," + "\"time\"" + ":" + time + "}";

    }

    /**
     * data : [{"path":"http://192.168.1.47//upload/images/gallery/1/t/66_src.jpg","link":"","thumb":"http://192.168.1.47//upload/images/gallery/1/t/66_temp-640-200-2.jpg"},{"path":"http://192.168.1.47//upload/images/gallery/1/s/65_src.jpg","link":"","thumb":"http://192.168.1.47//upload/images/gallery/1/s/65_temp-640-200-2.jpg"},{"path":"http://192.168.1.47//upload/images/gallery/1/r/64_src.jpg","link":"","thumb":"http://192.168.1.47//upload/images/gallery/1/r/64_temp-640-200-2.jpg"}]
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1473401008
     */

    private boolean flag;
    private int code;
    private String msg;
    private int time;
    /**
     * path : http://192.168.1.47//upload/images/gallery/1/t/66_src.jpg
     * link :
     * thumb : http://192.168.1.47//upload/images/gallery/1/t/66_temp-640-200-2.jpg
     */

    private List<Bannerdata> data;

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<Bannerdata> getData() {
        return data;
    }

    public void setData(List<Bannerdata> data) {
        this.data = data;
    }

    public static class Bannerdata {
        @Override
        public String toString() {
            return "{" +
                    "\"path\"" + ":" + "\"" + path + "\"" + ","
                    + "\"link\"" + ":" + "\"" + link + "\"" + ","
                    + "\"thumb\"" + ":" + "\"" + thumb + "\"" + "}";

        }

        private String path;
        private String link;
        private String thumb;

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }
    }
}
